//package test.patches;
//
//import com.badlogic.gdx.graphics.Texture;
//import com.badlogic.gdx.graphics.g2d.BitmapFont;
//import com.badlogic.gdx.graphics.g2d.SpriteBatch;
//import com.evacipated.cardcrawl.modthespire.lib.SpireField;
//import com.evacipated.cardcrawl.modthespire.lib.SpirePatch;
//import com.evacipated.cardcrawl.modthespire.lib.SpirePostfixPatch;
//import com.megacrit.cardcrawl.cards.AbstractCard;
//import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
//import com.megacrit.cardcrawl.helpers.input.InputHelper;
//import test.actions.SakiAction;
//import test.cards.BaseCaptainCard;
//import test.utils.FontUtils;
//import test.utils.RenderUtils;
//
//import static mutsumimod.MutsumiMod.imagePath;
//
//public class SakiPatch {
//
//    public static class SakiInfo{
//        public int movedDistance;
//        public int canMoveDistance;
//        public SakiInfo(int canMoveDistance,int movedDistance){
//            this.canMoveDistance = canMoveDistance;
//            this.movedDistance = movedDistance;
//        }
//    }
//
//    @SpirePatch(
//            clz = AbstractCard.class,
//            method = SpirePatch.CLASS
//    )
//    public static class SakiFieldPatch {
//        public static SpireField<SakiInfo> sakiInfo = new SpireField<>(() -> null);
//    }
//
//    public static final Texture SAKI_STAND_BY = new Texture(imagePath("ui/saki_ship/frame_003.png"));
//
//    @SpirePatch(
//            clz = AbstractCard.class,
//            method = "update"
//    )
//    public static class SakiUpdatePatch {
//
//        @SpirePostfixPatch
//        public static void postFix(AbstractCard __instance) {
//            if (SakiFieldPatch.sakiInfo.get(__instance)!=null) {
//                if(__instance.equals(AbstractDungeon.player.hoveredCard)&& InputHelper.justClickedRight){
//                    if(__instance instanceof BaseCaptainCard){
//                        //((BaseCaptainCard) __instance).triggerOnSakiStartTravel();
//                        ((BaseCaptainCard) __instance).triggerOnRightClick();
//                    }
//                }
//            }
//        }
//    }
//
//    @SpirePatch(
//            clz = AbstractCard.class,
//            method = "render",
//            paramtypez = {
//                    SpriteBatch.class
//            }
//    )
//    public static class AbstractCardRenderPatch {
//
//        @SpirePostfixPatch
//        public static void postFix(AbstractCard __instance, SpriteBatch sb) {
//            if (SakiFieldPatch.sakiInfo.get(__instance)!=null) {
//                draw(__instance, sb);
//            }
//        }
//    }
//
//
//    public static BitmapFont BANG_FONT= FontUtils.createNoShadowFont(16.0f);
//
//    public static void draw(AbstractCard card, SpriteBatch sb) {
//        RenderUtils.RenderOnCard(sb, card, SAKI_STAND_BY, -135.0f, 125.0f, 196.0f, 196.0f);
//    }
//}
